#pragma once

#include <string>

struct DateTime {
	uint16_t year;
	uint8_t month;
	uint8_t day;
	uint8_t hour;
	uint8_t minute;
	uint8_t second;
	uint16_t millisecond;

	DateTime(
		uint16_t year = 0,
		uint8_t month = 0,
		uint8_t day = 0,
		uint8_t hour = 0,
		uint8_t minute = 0,
		uint8_t second = 0,
		uint16_t millisecond = 0
	) : year(year), month(month), day(day), hour(hour), minute(minute), second(second), millisecond(millisecond) {}

	static DateTime now();
	std::string toString() const;
};